package com.yc.c112s3plyblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2022-10-12
 */
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 文章Id
     */
      private Integer articleId;

      /**
     * 评论内容
     */
      private String content;

      /**
     * 评论人Id
     */
      private Integer createBy;

      /**
     * 评论时间
     */
      private LocalDateTime createTime;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public Integer getArticleId() {
        return articleId;
    }

      public void setArticleId(Integer articleId) {
          this.articleId = articleId;
      }
    
    public String getContent() {
        return content;
    }

      public void setContent(String content) {
          this.content = content;
      }
    
    public Integer getCreateBy() {
        return createBy;
    }

      public void setCreateBy(Integer createBy) {
          this.createBy = createBy;
      }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }

      public void setCreateTime(LocalDateTime createTime) {
          this.createTime = createTime;
      }

    @Override
    public String toString() {
        return "Comment{" +
              "id=" + id +
                  ", articleId=" + articleId +
                  ", content=" + content +
                  ", createBy=" + createBy +
                  ", createTime=" + createTime +
              "}";
    }
}
